<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>
    布局
  </title>
  <style>
    .container {width: 100%; height: 500px; background-color: pink;}
    .left {width: 200px; height: 200px; float: left;background-color: green;}
    .right {height: 100%; background-color: red;overflow: hidden;}
  </style>
</head>
<body>
  <h3>实现左边定宽，右边宽度自适应的布局:将左右都设置为一个 BFC</h3>
  <div class="container">
    <div class="left"></div>
    <div class="right"></div>
  </div>
</body>
</html>